package com.twotwoshop.gateway.user.limit.Impl;

import com.twotwoshop.gateway.user.limit.RateLimitHandler;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

@Component
public class DefaultRateLimitHandler implements RateLimitHandler {

    //当前实现直接调用接口的默认实现
    //可以在这里添加自定义的限流处理逻辑
    @Override
    public Mono<Void> handleRateLimit(ServerWebExchange exchange) {
        // 可以添加自定义的限流处理逻辑
        return RateLimitHandler.super.handleRateLimit(exchange);
    }
} 